#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QTimer>
#include <QMainWindow>
#include <labelcustom.h>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

public Q_SLOTS:
    void onRefreshCapTime();
    void onActionTriggered(QAction*);

    void onStatusChange(int mode, int cap_state, int touch_state, int ret);

    void onPowerPress();
    void onPowerRelease();

    void onHomePress();
    void onHomeRelease();

    void onMenuPress();
    void onMenuRelease();

    void onRecentsPress();
    void onRecentsRelease();

    void onBackPress();
    void onBackRelease();

    void onVolIncPress();
    void onVolIncRelease();

    void onVolDecPress();
    void onVolDecRelease();

    void onSendClick();

    void onMouseEventNotify(int, QMouseEvent*);


private:
    Ui::MainWindow *ui;
    LabelCustom *label;
    QTimer *timer;

    bool startMini();
    void showSettings();
};

#endif // MAINWINDOW_H
